<%@ page import="com.xiao.asset.bean.UserBean" %><%--
  Created by IntelliJ IDEA.
  User: 衰草寒烟
  Date: 2016/10/25
  Time: 17:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>

<%  String ctxpath=request.getContextPath();
    UserBean au=null;
    if(request.getSession().getAttribute("USER")==null){
        response.sendRedirect(request.getContextPath());
    }else {
        au= (UserBean) request.getSession().getAttribute("USER");
    }

%>
<script>
    var _path="<%=ctxpath%>";
</script>
<html>
<head>
    <title>资产管理平台</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <%--<link rel="stylesheet" href="<%=ctxpath%>/static/neon/assets/js/jquery-ui/css/no-theme/jquery-ui-1.10.3.custom.min.css">
    <link rel="stylesheet" href="<%=ctxpath%>/static/neon/assets/css/font-icons/entypo/css/entypo.css">--%>
    <%--<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic">--%>
    <link rel="stylesheet" href="<%=ctxpath%>/static/neon/assets/css/bootstrap.css">
    <link rel="stylesheet" href="<%=ctxpath%>/static/neon/assets/css/neon-core.css">
    <link rel="stylesheet" href="<%=ctxpath%>/static/neon/assets/css/neon-theme.css">
  <%--  <link rel="stylesheet" href="<%=ctxpath%>/static/neon/assets/css/neon-forms.css">
    <link rel="stylesheet" href="<%=ctxpath%>/static/neon/assets/css/custom.css">--%>

    <script src="<%=ctxpath%>/static/neon/assets/js/jquery-1.11.0.min.js"></script>

    <script>$.noConflict();

    </script>
</head>
<body class="page-body" data-url="http://neon.dev">
<div class="page-container horizontal-menu">
    <header class="navbar navbar-fixed-top"><!-- set fixed position by adding class "navbar-fixed-top" -->

        <div class="navbar-inner">

            <!-- logo -->
            <div class="navbar-brand">
                <a href="index.html">
                    <span>LOGO</span>
                </a>
            </div>


            <!-- main menu -->

            <ul class="navbar-nav active">
                <li>
                    <a href="<%=ctxpath%>/main/home.do">
                        <i class="entypo-newspaper"></i>
                        <span class="title">首页</span>
                    </a>
                </li>
                <li>
                    <a href="<%=ctxpath%>/asset/list.do">
                        <i class="entypo-newspaper"></i>
                        <span class="title">资产</span>
                    </a>
                </li>
                <li>
                    <a href="<%=ctxpath%>/main/yingyong.do">
                        <i class="entypo-doc-text"></i>
                        <span class="title">应用</span>
                    </a>
                </li>
                <li>
                    <a href="<%=ctxpath%>/report/#">
                        <i class="entypo-bag"></i>
                        <span class="title">报表</span>
                    </a>
                </li>
            </ul>


            <!-- notifications and other links -->
            <ul class="nav navbar-right pull-right">
                <%if(au!=null){%>
                <li>
                    <%--<a href="<%=ctxpath%>/warn/warningmag.do">
                        <span class="glyphicon glyphicon-envelope"></span>
                        <span class="badge badge-secondary" id="tiaoshu">0</span>
                    </a>--%>
                    <a href="javascript:;"><span class="glyphicon glyphicon-user"> 用户名：<%=au.getUsername()%></span></a>
                    <%--<a href="javascript:;"><span class="glyphicon glyphicon-flag"> 角 色：<%=au.getRole()%></span></a>--%>
                    <a href="<%=ctxpath%>/logout.jsp" style="font-size: large">
                        <i class="entypo-logout right">注销</i>
                    </a>
                </li>
                <%}%>
            </ul>
        </div>
    </header>
